package com.ly.config;

import com.ly.feign.ProductFeign;
import com.ly.pojo.Products;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class MyFallbackFactory implements FallbackFactory {
    @Override
    public ProductFeign create(Throwable throwable) {
        new ProductFeign() {
            @Override
            public Products findProductionById(Integer id) {
                return null;
            }

            @Override
            public List<Products> findAllProduction() {
                return null;
            }

            @Override
            public String getPort() {
                return null;
            }
        };
        return null;
    }
}
